import * as TYPES from './../action-type';
console.log( TYPES.SIDER_COLLAPSE_BTN);

const siderAction = {
    setCollapse() {
        return {
            type: TYPES.SIDER_COLLAPSE_BTN
        }
    },
    addRoute(route) {
        return {
            type: TYPES.ADD_ROUTE,
            route
        }
    },
    deleteRoute(key) {
        return {
            type: TYPES.DELETE_ROUTE,
            key
        }
    },
    updateRoute(key) {
        return {
            type: TYPES.UPDATE_COLOR,
            key
        }
    },
    setActionType(actionType) {
        return {
            type: TYPES.SET_ACTION_TYPE,
            actionType
        }
    }
}

export default siderAction;